package com.jinmdz.fmis.api.admin.model.organization;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 组织结构维护请求数据
 *
 * @author LiCongLu
 * @date 2020-03-16 11:16
 */
@ApiModel(value = "组织结构维护请求数据", description = "组织结构维护请求数据")
public class OrganizationSaveData extends BaseBean {
    /**
     * 主键
     */
    @AnValidate(name = "主键", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "主键", name = "id", position = 1)
    private Integer id;

    /**
     * 父组织外键
     */
    @AnValidate(name = "父组织外键", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "父组织外键", name = "parentId", position = 2)
    private Integer parentId;

    /**
     * 父组织编码
     */
    @AnValidate(name = "父组织编码")
    @ApiModelProperty(value = "父组织编码", name = "parentCode", position = 3)
    private String parentCode;

    /**
     * 父组织名称
     */
    @AnValidate(name = "父组织名称")
    @ApiModelProperty(value = "父组织名称", name = "parentName", position = 4)
    private String parentName;

    /**
     * 组织编码
     */
    @AnValidate(name = "组织编码")
    @ApiModelProperty(value = "组织编码", name = "organizationCode", position = 5)
    private String organizationCode;

    /**
     * 组织名称
     */
    @AnValidate(name = "组织名称", required = true)
    @ApiModelProperty(value = "组织名称", name = "organizationName", position = 6)
    private String organizationName;

    /**
     * 组织简称
     */
    @AnValidate(name = "组织简称")
    @ApiModelProperty(value = "组织简称", name = "organizationAbbreviation", position = 7)
    private String organizationAbbreviation;

    /**
     * 组织描述
     */
    @AnValidate(name = "组织描述")
    @ApiModelProperty(value = "组织描述", name = "organizationDescribe", position = 8)
    private String organizationDescribe;

    /**
     * 组织分类编码
     */
    @AnValidate(name = "组织分类编码", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "组织分类编码", name = "organizationTypeCode", position = 9)
    private Integer organizationTypeCode;

    /**
     * 地址
     */
    @AnValidate(name = "地址")
    @ApiModelProperty(value = "地址", name = "address", position = 10)
    private String address;

    /**
     * 禁用状态
     */
    @AnValidate(name = "禁用状态", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "禁用状态", name = "disableState", position = 11)
    private Integer disableState;

    /**
     * 排序
     */
    @AnValidate(name = "排序", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "排序", name = "sort", position = 12)
    private Integer sort;

    /**
     * 备注
     */
    @AnValidate(name = "备注")
    @ApiModelProperty(value = "备注", name = "remark", position = 13)
    private String remark;

    /**
     * 数据版本号
     */
    @AnValidate(name = "数据版本号")
    @ApiModelProperty(value = "数据版本号", name = "version", position = 14)
    private Long version;

    public Integer getId() {
        return id;
    }

    public OrganizationSaveData setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getParentId() {
        return parentId;
    }

    public OrganizationSaveData setParentId(Integer parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getParentCode() {
        return parentCode;
    }

    public OrganizationSaveData setParentCode(String parentCode) {
        this.parentCode = parentCode;
        return this;
    }

    public String getParentName() {
        return parentName;
    }

    public OrganizationSaveData setParentName(String parentName) {
        this.parentName = parentName;
        return this;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public OrganizationSaveData setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
        return this;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public OrganizationSaveData setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
        return this;
    }

    public String getOrganizationAbbreviation() {
        return organizationAbbreviation;
    }

    public OrganizationSaveData setOrganizationAbbreviation(String organizationAbbreviation) {
        this.organizationAbbreviation = organizationAbbreviation;
        return this;
    }

    public String getOrganizationDescribe() {
        return organizationDescribe;
    }

    public OrganizationSaveData setOrganizationDescribe(String organizationDescribe) {
        this.organizationDescribe = organizationDescribe;
        return this;
    }

    public Integer getOrganizationTypeCode() {
        return organizationTypeCode;
    }

    public OrganizationSaveData setOrganizationTypeCode(Integer organizationTypeCode) {
        this.organizationTypeCode = organizationTypeCode;
        return this;
    }

    public String getAddress() {
        return address;
    }

    public OrganizationSaveData setAddress(String address) {
        this.address = address;
        return this;
    }

    public Integer getDisableState() {
        return disableState;
    }

    public OrganizationSaveData setDisableState(Integer disableState) {
        this.disableState = disableState;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public OrganizationSaveData setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public OrganizationSaveData setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public Long getVersion() {
        return version;
    }

    public OrganizationSaveData setVersion(Long version) {
        this.version = version;
        return this;
    }
}
